package com.hxht.cmp.service;

import com.github.pagehelper.Page;
import com.hxht.cmp.entity.Favorite;
import com.hxht.cmp.pojo.FavoritePojo;
import com.hxht.cmp.pojo.FavoriteResult;

import java.util.List;

/**
 * @author alice on 2017/8/16 0016.
 * @version 1.0
 * @since 1.0
 */
public interface FavoriteService {

    Favorite selectFavorite(Favorite favorite);

    int insertFavorite(Favorite favorite);

    int deleteFavorite(Favorite favorite);

    Page<Favorite> selectFavorite(int start, int pageSize, String userUid);

    Page<FavoriteResult> pageFavorite(FavoritePojo favoritePojo);

    List<Favorite> selectAllFavorite(String userUid);
}
